<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>贴吧问答</title>
  <link rel="stylesheet" href="/public/css/bootstrap.min.css">
</head>
<body>
<div class="panel panel-default">
  <div class="panel-body">
    <table class="table">
      <thead>
      <th>{{comment.content}}</th>
      </thead>
      {{ each comments}}
      <tr>
        <td>
          <div>
            <span>{{$value.userName}}</span>
          </div>
          <div> {{$value.content}}</div>
        </td>
      </tr>
      {{/each}}

    </table>
  </div>
</div>

<form action="/comment" method="post">
  <div class="form-group">
    <label >评论</label>
    <input type="hidden" name="id" value="{{ comment.id }}">
    <input type="text" class="form-control"  name="content" required>
  </div>
  <button type="submit" class="btn btn-default">发布</button>
</form>
</body>
</html>
